#include<stdio.h>
#include<string.h>
#include<math.h>
struct location {
    int x;
    int y;
    int z;
}load[]={
    {0,0,0},
    {0,0,0}
};

float jisuan(struct location *load){
    int x=(load[1].x - load[2].x)*(load[1].x - load[2].x);
    int y=(load[1].y - load[2].y)*(load[1].y - load[2].y);
    int z=(load[1].z - load[2].z)*(load[1].z - load[2].z);
    float distance=sqrt(x+y+z); //
    return distance;
}


int main(void){	
    printf("输入第一个点坐标(用空格隔开)\n");
    scanf("%d %d %d",&load[0].x,&load[0].y,&load[0].z);
    printf("输入第二个点坐标(用空格隔开)\n");
    scanf("%d %d %d",&load[1].x,&load[1].y,&load[1].z);
    printf("直线距离为:%f\n",jisuan(load));

    return 0;
}

